-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nonspec: add instructions for checking markdown formatting #1096
Conversation
I got tired of getting errors after sending and updating PRs but didn't know how to run the style checker locally. Once I figured it out I suspected other folks might have a similar problem. Signed-off-by: Tom Hennen <tomhennen@google.com>
✅ Deploy Preview for slsa canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
CONTRIBUTING.md
Outdated
@@ -57,6 +57,25 @@ style, as encoded in our [markdownlint configuration](.markdownlint.yaml). In | |||
addition we prefer to keep our Markdown documents wrapped at 80 columns (though | |||
this is not currently enforced). | |||
|
|||
To check (and fix) style problems before sending a PR you can install | |||
and run [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I haven't played with this (I typically just run the same command as the GHA workflow: npm run lint && ./lint.sh
Do you know if this CLI uses our .markdownlint.yaml and .markdownlintignore ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know, I didn't:
- Know exactly how it worked already.
- Know that it supported fixing via
format
. - Know how to get it working.
It looks like markdownlint-cli2 does support .markdownlint.yaml, but the .markdownlintignore is 'different' and the compatibility isn't quite right.
So I figured out how to use the same tooling as the workflow.
Signed-off-by: Tom Hennen <tomhennen@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Add instructions for checking markdown formatting using markdownlint-cli2.
I got tired of getting errors after sending and updating PRs but didn't know how to run the style checker locally. Once I figured it out I suspected other folks might have a similar problem.